#include "SingleRun.h"
#include <QMessageBox>

//----------------------------------------------------------------------------------------
LSingleRun::LSingleRun() {

}

//----------------------------------------------------------------------------------------
bool LSingleRun::isRunningNow(const QString &applicationName) {
    shared.setKey(applicationName);
    if(!shared.create(512, QSharedMemory::ReadWrite)) {
        QMessageBox::information(0, "Warning", applicationName + " is already running.");
        return true;
    }
    return false;
}

//----------------------------------------------------------------------------------------


//----------------------------------------------------------------------------------------
